extends "../aogusite-2/aogusite-2.gd"


func _extInit():
	._extInit()
	lv = 3
	addSkill("每秒对周围2格的敌人造成[本回合已受伤害量*0.2]的技能伤害，每造成6次技能伤害，恢复自身15%血量", "本我轰击")

var hurtNum1 = 0
var skillNum1 = 0
func _onBattleStart():
	._onBattleStart()
	hurtNum1 = 0
	skillNum1 = 0

func onHurtEnd(atkInfo):
	.onHurtEnd(atkInfo)
	hurtNum1 += atkInfo.hurtVal

func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType == sys.AtkType.SKILL:
		skillNum1 += 1
	if skillNum1 >= 6:
		skillNum1 = 0
		healCha(self, att.maxHp*0.15)

func _upS():
	._upS()
	for i in getCellChas(cell, 2, 1):
		azurHurtChara(i, hurtNum1*0.2, sys.HurtType.WEAPON, sys.AtkType.SKILL, "本我轰击")

var p31 = 0.2
var p32 = 0.15		